package com.lovo.common.service.impl;

import com.lovo.common.dao.ISysDictDao;
import com.lovo.common.dao.impl.SysDictDaoImpl;
import com.lovo.common.model.SysDictBean;
import com.lovo.common.service.ISysDictService;

import java.util.List;

/**
 * 数据字典服务实现类
 * @author 白德柯
 *
 */
public class SysDictServiceImpl implements ISysDictService {
    private ISysDictDao sysDictDao = new SysDictDaoImpl();
    @Override
    public List<SysDictBean> findByTypeId(int typeId) {
        return sysDictDao.findByTypeId(typeId);
    }

    @Override
    public SysDictBean findById(int id) {
        return sysDictDao.findById(id);
    }
}
